<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>新增课程</title>
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0">-->
    <!-- 引入 Bootstrap -->
     <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"rel="stylesheet">
</head>
<body>
	<hr>
	<div class="container">
		<hr>
		<div class="row clearfix">
			<div class="col-md-12 column">
				<div class="page-header">
					<h1>
						<small>添加课程</small> <small style="float: right"><span><a
								href="${pageContext.request.contextPath}/frame">返回</a></span></small>
					</h1>
				</div>
			</div>
		</div>


		<div class="row clearfix">
			<div class="layui-table">
				<table class="table table-hover table-striped">
					<colgroup>
						<col width="150">
						<col width="200">
						<col>
					</colgroup>
					<form class="layui-form" action="${pageContext.request.contextPath}/addCourse" method="post">
						<div class="layui-form-item">
							<label class="layui-form-label">课程编号：</label>
							<div class="layui-input-inline">
								<input type="text" name="courseID" required="required"
									placeholder="请输入"  class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">课程名称：</label>
							<div class="layui-input-inline">
								<input type="text" name="courseName" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label">教师姓名：</label>
							<div class="layui-input-inline">
								<input type="text" name="teacher" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">学分：</label>
							<div class="layui-input-inline">
								<input type="text" name="point" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">上课时间：</label>
							<div class="layui-input-inline">
								<input type="text" name="time1" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label">上课时间：</label>
							<div class="layui-input-inline">
								<input type="text" name="time2" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">上课地点：</label>
							<div class="layui-input-inline">
								<input type="text" name="location" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>
												
						<div class="layui-form-item">
							<label class="layui-form-label">限制人数：</label>
							<div class="layui-input-inline">
								<input type="text" name="limited" required="required"
									placeholder="请输入" autocomplete="off" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							    <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">添加课程</button>
      							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
					</form>
				</table>
			</div>
		</div>
	</div>
</body>
</html>
